#ifndef __GameHall__GNS_ExitGameTips__
#define __GameHall__GNS_ExitGameTips__

#include "cocos2d.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"

USING_NS_CC;
using namespace cocostudio::timeline;
using namespace ui;

class GNS_ExitGameTips : public Layer
{
public:
	GNS_ExitGameTips();
	~GNS_ExitGameTips();
	static GNS_ExitGameTips* createLayer(std::string CsbName);
	virtual bool init();
	CREATE_FUNC(GNS_ExitGameTips);
	void BtnCallBack(Ref *pSender, ui::Widget::TouchEventType type);
	void Show(bool isShow = true);
	void SetNodeName(std::string CsbName);
	Button* m_submitBT;

	void showBackgroundTip();
	void setCurState(int state);
private:
	EventListenerTouchOneByOne * listener = nullptr;
	Node* m_node = nullptr;

	int _state;
};

#endif